<?php

namespace app\common\model;

use think\Model;
use app\common\model\general\LihuaCity;
use app\common\model\general\LihuaStore;


class LihuaDeliverFee extends Model
{
    // 表名
    protected $table = 'lihua_deliver_fee';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [];
    
    // 关联用户模型
    public function lihua_city()
    {
        return $this->belongsTo('LihuaCity', 'city_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    
    public function lihua_store()
    {
        return $this->belongsTo('LihuaStore', 'store_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

   

}
